package cn.com.surker.production.service.impl;

import cn.com.surker.enums.StateEnum;
import cn.com.surker.production.entity.InvoiceForce;
import cn.com.surker.production.entity.ProductionInvoice;
import cn.com.surker.production.service.ErpInvoiceForceService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author luotao
 * @date 2025/6/13
 */
@Service
public class ErpInvoiceForceImpl extends InvoiceForceBaseService implements ErpInvoiceForceService {

	@Override
	public List<InvoiceForce> findNoComplete() {
		QueryWrapper<InvoiceForce> qw = new QueryWrapper<>();
		qw.eq("status", StateEnum.ENABLED.getCode());
		qw.eq("complete", StateEnum.ENABLED.getCode());
		List<InvoiceForce> invoiceForces = invoiceForceDao.selectList(qw);
		return invoiceForces;
	}
}
